package com.jsdxsys.dao.impl;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;



public class DbUtils {
	public static Connection createCoon() {
		 	Connection conn=null;
		    String url="jdbc:mysql://localhost:3306/gsdxdb";
			String uid="root";
			String pwd="123456";
			String clsname="com.mysql.jdbc.Driver";
			try {
				Class.forName(clsname);
			} catch (ClassNotFoundException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			try {
				conn=DriverManager.getConnection(url, uid, pwd);
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			return conn;
		
	}

}
